			<div class="half_w half_left">
				<div class="h_title">Active League</div>
					<div id="container" style="min-width: 300px; height: 180px; margin: 0 auto"></div>
			</div>
			<div class="half_w half_right">
				<div class="h_title">League Statistics</div>
				<div class="stats">
					<div class="today">
						<h3>This Season</h3>
						<p class="count">8</p>
						<p class="type">Teams</p>
						<p class="count">64</p>
						<p class="type">Players</p>
						<p class="count">28</p>
						<p class="type">Games</p>
					</div>
					<div class="week">
						<h3>Last week</h3>
						<p class="count">4</p>
						<p class="type">Games</p>
						<p class="count">521</p>
						<p class="type">Points</p>
						<p class="count">104</p>
						<p class="type">Fouls</p>
					</div>
				</div>
			</div>
			
			<div class="clear"></div>
						
			<div class="full_w">
				<div class="h_title">New League</div>
				<form action="handlers/addLeague.php" method="post">
					<div class="element">
						<label for="name">League Name <span class="red">(required)</span></label>
						<input id="name" name="name" class="text" />
					</div>
					<div class="element">
						<label for="season">Season <span class="red">(required)</span></label>
						<input id="season" name="season" class="text" />
					</div>
					<div class="entry">
						<button type="submit" class="add">Save League</button> <button class="cancel">Cancel</button>
					</div>
				</form>
				<div class="n_ok"><p>Success notification. Lorem ipsum dolor sit amet, consetetur, sed diam nonumyeirmod tempor.</p></div>
				<div class="n_error"><p>Error notification. Lorem ipsum dolor sit amet, consetetur, sed diam nonumyeirmod tempor.</p></div>		
			</div>
			
			<div class="full_w">
				<div class="h_title">Leagues</div>
				<h2>List of Leagues</h2>
				<p>You can change, add or delete leagues here.</p>
				
				<div class="entry">
					<div class="sep"></div>
				</div>
				<table>
					<thead>
						<tr>
							<th scope="col">ID</th>
							<th scope="col">Name</th>
							<th scope="col">Season</th>
							<th scope="col">Active</th>
							<th scope="col" style="width: 65px;">Modify</th>
						</tr>
					</thead>
						
					<tbody>
                    <?php
						$niz = getAllLeagues();
						if (count($niz)) {
						foreach ($niz as $lea) {
					?>
						<tr>
							<td class="align-center"><?php echo $lea->id; ?></td>
							<td><?php echo $lea->ime; ?></td>
							<td><?php echo $lea->sezona; ?></td>
							<td>Yes</td>
							<td>
								<a href="#" class="table-icon edit" title="Edit"></a>
								<a href="#" class="table-icon archive" title="Make Active"></a>
								<a href="handlers/deleteLeague.php?id=<?php echo $lea->id; ?>" class="table-icon delete" title="Delete"></a>
							</td>
						</tr>
                    <?php
						}
						}
					?>
					</tbody>
				</table>
				<div class="entry">
					<div class="pagination">
						<span>« First</span>
						<span class="active">1</span>
						<a href="">2</a>
						<a href="">3</a>
						<a href="">4</a>
						<span>...</span>
						<a href="">23</a>
						<a href="">24</a>
						<a href="">Last »</a>
					</div>
					<div class="sep"></div>		
					<a class="button add" href="">Add new League</a> 
				</div>
			</div>